class Person:
    def __init__(self, name, age):
        self.name = name
        self._age = age

    def __str__(self):
        return f'{self.name} {self._age}'

    def __secret(self):
        print("我的年龄是 %d" % self.__age)


p1 = Person("张三", 17)
print(p1)

# print(p1.__age)

# p1.__secret()
